<template>
	<scroll-view class="wrapper" scroll-y="true" @scrolltolower="next()">
		<view class="set_box" v-for="(item, index) in talk" :key="item.id" >
			<!-- 步骤条 -->
			<view class="set-2" @tap="openShare(item)">
				<view class="tlak_o">
					<view class="like_">
						<view class="like_o">
							<view class="time_">{{ item.createTime | time }}</view>
							<view class="like_talk">
								<view class="title">{{ item.title }}</view>
								<view class="content">{{ item.content }}</view>
							</view>
<!-- 							<view class="footer">
								<view class="see_all"></view>
								<view class="share">
									<image src="../../static/bizhan/share_img.png" mode="aspectFill" class="share_img"></image>
									分享
								</view>
							</view> -->
						</view>
					</view>
				</view>
			</view>
		</view>
	</scroll-view>
</template>

<script>
export default {
	data() {
		return {
			talk: [],
			page: 1
		};
	},
	created() {
		this.getArticlePage();
	},
	methods: {
		openShare(item){
			this.$open('./share?item='+JSON.stringify(item))
		},
		next() {
			this.page++;
			this.getArticlePage();
		},
		getArticlePage() {
			this.$ajax(
				'bi/getArticlePage',
				{
					page: this.page
				},
				'POST'
			).then(res => {
				this.talk = this.talk.concat(res.data.data);
			});
		}
	}
};
</script>

<style lang="scss">
	
.date {
	font-size: 22rpx;
	color: rgba(81, 106, 173, 1);
	margin: 15rpx 0 0 30rpx;
}
/* 右侧内容 */

.set-2 {
	max-height: 300rpx;
	border-radius: 10rpx;
	margin-left: 66rpx;
	margin-top: 28rpx;
	margin-bottom: 25rpx;
	position: relative;

	.time_ {
		font-size: 24rpx;
		color: red;
		line-height: 24rpx;
	}

	.like_talk {
		width: 660rpx;
		.title {
			font-size: 30rpx;
			font-weight: bold;
			color: #02C076;
			line-height: 42rpx;
			margin-top: 21rpx;
		}
		.content {
			font-size: 28rpx;
			color: #0EA391;
			line-height: 40rpx;
			max-height: 160rpx;
			display: -webkit-box;
			-webkit-box-orient: vertical;
			-webkit-line-clamp: 4;
			overflow: hidden;
		}
		.like_img {
			display: flex;
			justify-content: flex-start;
			flex-wrap: wrap;
		}
	}
}
.footer {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	margin-top: 20rpx;
	margin-bottom: 30rpx;
}
.see_all {
	font-size: 24rpx;
	line-height: 24rpx;
	color: rgba(68, 68, 68, 1);
}
.share {
	font-size: 24rpx;
	line-height: 24rpx;
	color: rgba(153, 153, 153, 1);
	display: flex;
	flex-direction: row;
	align-items: center;
	margin-right: 30rpx;
}
.share_img {
	width: 28rpx;
	height: 28rpx;
	margin-right: 10rpx;
}
.set-2::after {
	content: '';
	top: 22rpx;
	border-left: #c6c6c6 1rpx dotted;
	left: -26rpx;
	height: 100%;
	position: absolute;
}

.set-2::before {
	content: '';
	background: url(../../static/bizhan/blue_pot.png) no-repeat;
	color: #c6c6c6;
	position: absolute;
	left: -35rpx;
	top: 2rpx;
	background-size: 100%;
	width: 20rpx;
	height: 20rpx;
}
</style>
